package com.mock.action.member;

import com.mock.dao.MemberDao;
import com.mock.dao.impl.MemberDaoImpl;
import com.mock.model.Member;
import com.opensymphony.xwork2.ActionSupport;

public class EditMemberAction extends ActionSupport{

	private MemberDao memberDao = new MemberDaoImpl();
	private Member member;
	private Long id;
	public String execute() {
		member = memberDao.getById(Member.class, id);
		return SUCCESS;
	}
	
	public String updateMember() {
		
		return SUCCESS;
	}

	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
}
